package two.chapter_1.c1_3;

import edu.princeton.cs.algs4.StdOut;


public class Ex1_3_33 {

    public static void main(String[] args) {
        Deque<String> steque=new DoubleLinkedDeque<>();

        steque.pushLeft("b");
        steque.pushLeft("c");
        steque.pushLeft("d");
        steque.pushRight("e");
        steque.pushRight("f");
        steque.pushRight("g");

        for (String item : steque){
            StdOut.print(item);   //bcd
        }

    }


}
